import method from '@/api/method'
import {
  objToString
} from '@/utils/helper'
// 列表
export function get_order_model_by_status(params) {
  return method.post('qdsflsc/api/portal/order/v1/get_order_model_by_status.do', params)
}

// ????  已删除接口
export function find_product(params) {
  return method.post(`qdsflsc/api/white/common/v1/search_product.do`, params)
}

// 订单接收
export function receive_order(params) {
  return method.post('qdsflsc/api/portal/order/v1/receive_order.do', params, {
    isXAuthToken: true,
    isXReqUserId: true
  })
}

// 订单拒接
export function refused_order(params) {
  return method.post('qdsflsc/api/portal/order/v1/refused_order.do', params, {
    isXAuthToken: true,
    isXReqUserId: true
  })
}
